<template>
	<view>
		
		<button @click="sendMsg">授权登录</button>
		<view class="interval_bar">---{{text}}---{{isShow}}</view>
		
	</view>
</template>

<script>
	export default {
		name:"bdpicker",
		props: ['text', 'isShow'],
		data() {
			return {
				
			};
		},
		methods:{
		    sendMsg () {
				console.log('~~~', this.isShow);
				
		        this.$emit('isShow', !this.isShow);
		        //传递多个参数
		        //this.$emit('isShow',[false,"你好"])
		    }
		}
	}
</script>

<style lang="scss" scoped>
	// 间隔栏
	.interval_bar{
		height: 20rpx;
		background-color: #F4F5F6;
	}
</style>
